package com.transaction.stockseata;

import com.transaction.stockseata.filter.RepeatableReadJsonFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.servlet.Filter;

@SpringBootApplication
@MapperScan("com.transaction.stockseata.mapper")
@EnableDiscoveryClient              // 开启注册中心
@ServletComponentScan("com.transaction.stockseata.filter")
public class StockSeataApplication {

    public static void main(String[] args) {
        SpringApplication.run(StockSeataApplication.class, args);
    }

}
